import request from '../utils/request'

// 验证手机号码是否被注册
export function doCheckPhone (params) {
  return request.post('/user/docheckphone', params)
}

// 发送短信验证码
export function doSendMsgCode (params) {
  return request.post('/user/dosendmsgcode', params)
}

// 验证短信验证码
export function doCheckCode (params) {
  return request.post('/user/docheckcode', params)
}

// 注册
export function doFinishRegister (params) {
  return request.post('/user/dofinishregister', params)
}

// 登录
export function login (params) {
  return request.post('/user/login', params)
}
